﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:BindableApplicationBar">
    <Style
        TargetType="local:BindableApplicationBar">
        <Setter
            Property="ButtonTemplate">
            <Setter.Value>
                <DataTemplate>
                    <local:BindableApplicationBarButton
                        Command="{Binding Command}"
                        CommandParameter="{Binding CommandParameter}"
                        IconUri="{Binding IconUri}"
                        IsEnabled="{Binding IsEnabled}"
                        Text="{Binding Text}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
        <Setter
            Property="MenuItemTemplate">
            <Setter.Value>
                <DataTemplate>
                    <local:BindableApplicationBarMenuItem
                        Command="{Binding Command}"
                        CommandParameter="{Binding CommandParameter}"
                        IsEnabled="{Binding IsEnabled}"
                        Text="{Binding Text}" />
                </DataTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>